package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.tenant.core.TenantEntity;
import org.dromara.system.domain.SysCampus;

/**
 * 校区管理业务对象 school_campus
 *
 * @author gjb
 * @date 2025-05-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysCampus.class, reverseConvertGenerate = false)
public class SysCampusBo extends TenantEntity {

    /**
     * id
     */
    private Long campusId;

    /**
     * 校区名称
     */
    @NotBlank(message = "校区名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String campusName;

    /**
     * 校区简称
     */
    private String campusShortName;

    /**
     * 校区地址
     */
    @NotBlank(message = "校区地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String campusAddress;

    /**
     * 校区性质
     */
    @NotNull(message = "校区性质不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long campusNature;

    /**
     * 校区邮编
     */
    private String postcode;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 传真
     */
    private String fax;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 校区负责人
     */
    @NotBlank(message = "校区负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String campusManager;

    /**
     * 校区负责人电话
     */
    @NotBlank(message = "校区负责人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String campusManagerPhone;

    /**
     * 备注
     */
    private String remark;


}
